package com.czh.gzskzn.qqkonjian.Fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;

import com.czh.gzskzn.qqkonjian.Activity.LoginActivity;
import com.czh.gzskzn.qqkonjian.R;

public class FragmentGeRen extends Fragment {

	private View view;
	private Button button;
	private LinearLayout zhiLiao,miMaXiuGai;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
							 Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.fragment_space,container,false);

		intView();
		dainJie();


		return view;

	}

	private void dainJie() {

		button.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getActivity(), LoginActivity.class);
				startActivity(i);
			}
		});

		zhiLiao.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
//				个人资料


			}
		});

		miMaXiuGai.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
//				密码修改

			}
		});

	}

	private void intView() {


		button = (Button) view.findViewById(R.id.button);

		zhiLiao = (LinearLayout) view.findViewById(R.id.ll_ziliao_ss);
		miMaXiuGai = (LinearLayout) view.findViewById(R.id.ll_mima_ss);
	}
}

